package com.taoyi.mhouse.binder;

import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.taoy.recyclebinder.DataBindAdapter;
import com.taoy.recyclebinder.DataBinder;
import com.taoyi.mhouse.R;
import com.taoyi.mhouse.util.UIUtils;
import com.tempo.widget.IndicatorView;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by tempo on 2015/11/13.
 */
public class SearchBinder extends DataBinder<SearchBinder.ViewHolder> {

    public SearchBinder(DataBindAdapter dataBindAdapter) {
        super(dataBindAdapter);
    }
    @Override
    public ViewHolder newViewHolder(ViewGroup parent) {
        return new ViewHolder(LayoutInflater.from(UIUtils.getContext()).inflate(R.layout.binder_search,parent,false));
    }

    @Override
    public void bindViewHolder(ViewHolder holder, int position) {
    }
    @Override
    public int getItemCount() {
        return 1;
    }
    static class ViewHolder extends RecyclerView.ViewHolder {
        public ViewHolder(View itemView) {
            super(itemView);
        }

    }

}
